<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.7.1/jquery.js"></script>
    <script>
        $.ajax(
            {type:'post',
            url:'https://www.baidu.com',
            contentType:'application/x-www-form-urlencoded',
            data:'abc=1&qwe=2',
            success:function(body){
                console.log('ok');
            }
        });
    </script>
</body>
</html>